<script>
import LeftMenuView from '@/views/LeftMenuView.vue'
import RightContentView from '@/views/RightContentView.vue'

export default {
  name: "HomeView",
  components: { RightContentView, LeftMenuView },
  data(){
    return{
      leftShow:false,
      firstIndex:0,
      secondIndex:0,
    }
  },
  methods:{
    getRightValue(show){
        this.leftShow = show;
    },
    Index(first, second) {
      this.firstIndex = first;
      this.secondIndex = second;
    },
  },
}
</script>

<template>
<div class="home">
  <LeftMenuView :show="leftShow"  @pushIndex="Index"></LeftMenuView>
  <RightContentView @menuChange="getRightValue" :firstIndex="firstIndex" :secondIndex="secondIndex"></RightContentView>
</div>
</template>

<style scoped>

</style>